package com.whq.thrift.api.as.demo01.account.query;

import java.util.List;
import java.util.Map;

import com.whq.thrift.api.common.constants.CommonErrorCodeConstants;
import com.whq.thrift.api.common.thriftserver.ResponseBase;
import com.whq.thrift.api.common.thriftserver.ResponseDataListBase;
import com.whq.thrift.api.thrift.as.service.service.ApiDetailInterface;
import com.whq.thrift.api.thrift.as.service.service.AsBaseSpringService;

public class ApiDetailImpl implements ApiDetailInterface {
	public ResponseBase execApi(AsBaseSpringService asBaseSpringService, String method, Map<String, String> params, Map<String, String> ctx) {
		
		List list = asBaseSpringService.getSqlSession().selectList("User.selectRecords");
		
		ResponseDataListBase response = new ResponseDataListBase();
		response.setReturnCode(CommonErrorCodeConstants.ERR_CODE_SUCCESS);
		response.setReturnMsg("success");
		response.setData(list);
		
		return response;
	}

}
